projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38d2af0
)
(insert_1_both): Do nothing if NCHARS == 0.
author
Gerd Moellmann
<gerd@gnu.org>
Fri, 26 Oct 2001 12:02:42 +0000
(12:02 +0000)
committer
Gerd Moellmann
<gerd@gnu.org>
Fri, 26 Oct 2001 12:02:42 +0000
(12:02 +0000)
src/ChangeLog
patch
|
blob
|
history
src/insdel.c
patch
|
blob
|
history
diff --git
a/src/ChangeLog
b/src/ChangeLog
index dc42d2d7717deeabec3d1daea8c2e2fdc067842c..815fc6b62f16d5e9953dd5b706dfd0b3f70d54e2 100644
(file)
--- a/
src/ChangeLog
+++ b/
src/ChangeLog
@@
-1,5
+1,7
@@
2001-10-26 Gerd Moellmann <gerd@gnu.org>
+ * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
+
* xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
Fix clearing in the case of scroll bars on the right.
diff --git
a/src/insdel.c
b/src/insdel.c
index 7963ae0f328a0302a5446b27da65dc1d3f0a8b74..24bfe8a893c177abc497658dfe4e29d6ada65efc 100644
(file)
--- a/
src/insdel.c
+++ b/
src/insdel.c
@@
-913,6
+913,9
@@
insert_1_both (string, nchars, nbytes, inherit, prepare, before_markers)
register int nchars, nbytes;
int inherit, prepare, before_markers;
{
+ if (nchars == 0)
+ return;
+
if (NILP (current_buffer->enable_multibyte_characters))
nchars = nbytes;